﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dailituiguang1.aspx.cs" Inherits="Yule8xWxPromotion.XAgent.Dailituiguang1" %>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>八星游戏代理招募</title>
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/comm.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/icon.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/my.css" />
    <link rel="stylesheet" type="text/css" href="../Skin/Theme/Css/agent.css" />
    <script src="../Skin/Theme/Js/flexible_css.js" type="text/javascript" charset="utf-8"></script>
    <script src="../Skin/Theme/Js/flexible.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>

<body>
    <script src="../Skin/Theme/Js/jquery_2.1.3.js" type="text/javascript" charset="utf-8"></script>
    <script src="../Skin/Plugins/DialogLib/layer-v3.0.1/layer.js" type="text/javascript"></script>
    <div class="content b-y" style="margin: 0;">
        <!--
顶部代理专员信息
        -->
        <div class="adtext">
            <img src="../Skin/Theme/images/agent/adtext.png">
        </div>
        <div class="centerinfo">
            
    <form method="post" action="Dailituiguang1.aspx">
            <div class="guestinfo">
                <ul>
                    <li>
                        <div class="gusttname">名 字</div>
                        <div class="inputarea">
                            <input type="text" name="realname" id="guestname" placeholder="请输入您的名字" />
                        </div>
                    </li>
                    <li>
                        <div class="gusttname">联系方式</div>
                        <div class="inputarea">
                            <input type="text" name="mobile" id="guestphone" placeholder="请输入您的联系方式" />
                        </div>
                    </li>
                    <li>
                        <div class="gusttname">微信</div>
                        <div class="inputarea">
                            <input type="text" name="wxaccount" id="guestwx" placeholder="请输入您的微信" />
                        </div>
                    </li>
                </ul>
            </div>
            <div class="clear"></div>
            <div class="applyarea">
                <div class="areainfo"><a id="address" class="t-f" title="<%=ip %>"><%=address %></a> 代理名额未满</div>
                <div class="applybtn">
                    <div>
                        <button type="submit" style="border:none; background:none;"><img src="../Skin/Theme/images/agent/applybtn.png"></button>
                        <!--<a href="#" id="btnapply"><img src="../Skin/Theme/images/agent/applybtn.png"></a>-->
                        <input type="hidden" name="action" value="submit" />
                    </div>
                    <div class="applytips">申请立返75元奖励</div>
                </div>
            </div>
            <div class="clear"></div>
        </form>
            <div class="onlineper">
                <div class="onlinetext"><a class="t-f">当前全国有 </a><a class="t-rr"><%=count %></a><a class="t-f"> 人在咨询</a></div>
            </div>
            <div class="tipimg">
                <img src="../Skin/Theme/images/agent/tipimages.png">
            </div>
            <div class="ziziimg">
                <img src="../Skin/Theme/images/agent/zizi.jpg">
            </div>
            <div class="voicelist">
                <!--向上滚动-->
                <!-- style="overflow: hidden; height: 253px; width: 410px; margin-top: 15px; margin-left: 15px; line-height: 24px;"-->
                <div id="coleetg">
                    <div id="coleetg1" data-url="/PublicServices/NoticeService.aspx?count=30&city=yes"></div>
                    <div id="coleetg2"></div>
                </div>
                <!--/向上滚动-->
            </div>
            <div class="clear"></div>
            <div class="agentnow">
                <ul>
                    <li>
                        <div class="headandtext">
                            <div class="agentheadimg">
                                <img src="../Skin/Theme/images/agent/chengzi.jpg">
                            </div>
                            <div class="infotext">原来靠做微商赚钱，现在顺带做了八星娱乐代理，16天时间发展66个代理，加上下级代理收入，总收入8500元</div>
                        </div>
                        <div class="ageandjob">小桔子 26岁  地区：宁波市  职业：微商 </div>
                    </li>
                    <li>
                        <div class="headandtext">
                            <div class="agentheadimg">
                                <img src="../Skin/Theme/images/agent/qiqi.jpg">
                            </div>
                            <div class="infotext">护士上班空闲时间多，发展同事及朋友做八星娱乐代理，加入22天，发展97个1级代理，135个2级代理，总收入13350元</div>
                        </div>
                        <div class="ageandjob">琪琪 26岁  地区：北京市  职业：护士 </div>
                    </li>
                    <li>
                        <div class="headandtext">
                            <div class="agentheadimg">
                                <img src="../Skin/Theme/images/agent/xiaogao.jpg">
                            </div>
                            <div class="infotext">通过在快递件上贴广告，以及发展同事做广告，20天发展1级代理144个，2级代理191个，总收入19395元</div>
                        </div>
                        <div class="ageandjob">小高 25岁  地区：深圳市  职业：快递主管 </div>
                    </li>
                    <li>
                        <div class="headandtext">
                            <div class="agentheadimg">
                                <img src="../Skin/Theme/images/agent/qiyue.jpg">
                            </div>
                            <div class="infotext">发展公司及竞争对手业务员做代理，通过日常工作推广给朋友及客户，22天发展1级代理311个，2级代理479个，总收入44880元</div>
                        </div>
                        <div class="ageandjob">浪漫契约 24岁  地区：厦门市  职业：房产中介 </div>
                    </li>
                    <li>
                        <div class="ageandjob1">他们都是普通人，都赚到钱了，你肯定也可以！</div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="adlist">
            <img src="../Skin/Theme/images/agent/adlist.png">
        </div>
        <div class="bottomlist">
            <img src="../Skin/Theme/images/agent/bottomlist.png">
        </div>
        <div class="onlinechat">
            <div class="chat">
                <a href="http://kefu.qycn.com/vclient/chat/?m=m&websiteid=126726">
                    <img src="../Skin/Theme/images/agent/chat.png"></a>
            </div>
            <div class="phonecall">
                <a href="tel:<%=phone %>" title="联系电话"><img src="../Skin/Theme/images/agent/phonecall.png"></a>
            </div>
        </div>
    </div>
    <script src="https://s11.cnzz.com/z_stat.php?id=1261874520&web_id=1261874520" language="JavaScript"></script>
    <input type="hidden" id="conf" data-appid="<%=appid %>" data-timestamp="<%=timestamp %>" data-noncestr="<%=noncestr %>" data-signature="<%=signature %>" />
    <script>
        $('#btnapply').click(function () {
            layer.open({
                title: '长按咨询代理拿红包',
                type: 1,
                skin: 'layui-layer-rim', //加上边框
                area: ['325px', '360px'], //宽高
                content: '<div style="text-align:center;">' + $('.agentqrimg').html() + '</div>'
            });
            return false;
        })
        $(':submit').click(function () {
            console.log($('form').serialize());
            $.post('Dailituiguang1.aspx', $('form').serialize(), function (data) {
                console.log(data);
                if (data.status) {
                    layer.msg('恭喜您，申请成功!');
                } else {
                    var msg = '';
                    for (var i in data.info) {
                        msg += data.info[i] + "<br />";
                    }
                    layer.msg(msg);
                }
            })
            return false;
        })
    </script>
    <script>
        function getnotices() {
            var $dom = $('#coleetg1');
            $dom.load($dom.data('url'), function (data) {
                if (!data) {
                    return;
                }
                data = $.parseJSON(data);
                var str = '<ul>';
                var name = '';
                var rnd = 0;
                for (var i in data) {
                    name = data[i].length > 7 ? data[i].substring(0, 7) : data[i];
                    name = name;
                    rnd = parseInt(Math.random() * 100);
                    str += '<li><div class="voiceimg"><img src="../Skin/Theme/images/agent/voice.png"></div><div class="voicetext">' + ((rnd % 2 > 0) ? '恭喜' + name + '成为代理' : name + '<a class="t-rr"> 领取75元奖励</a>') + '</div></li>';
                }
                str += '</ul>';
                $dom.html(str);
                if (!$dom.data('first')) {
                    $dom.data('first', true);
                    marqueeUp();
                }
            })
        }
        getnotices();
        setInterval(getnotices, 60000);
        function marqueeUp() {
            var speed = 80;
            var colee2 = document.getElementById("coleetg2");
            var colee1 = document.getElementById("coleetg1");
            var colee = document.getElementById("coleetg");
            colee2.innerHTML = colee1.innerHTML; //克隆colee1为colee2
            function Marquee1() {
                //当滚动至colee1与colee2交界时
                if (colee2.offsetTop - colee.scrollTop <= 0) {
                    colee.scrollTop -= colee1.offsetHeight; //colee跳到最顶端
                } else {
                    colee.scrollTop++
                }
            }
            var MyMar1 = setInterval(Marquee1, speed)//设置定时器
            //鼠标移上时清除定时器达到滚动停止的目的
            colee.onmouseover = function () { clearInterval(MyMar1) }
            //鼠标移开时重设定时器
            colee.onmouseout = function () { MyMar1 = setInterval(Marquee1, speed) }
        }
    </script>
    <script type="text/javascript">
        var $conf = document.getElementById('conf');
        wx.config({
            debug: false,
            appId: $conf.getAttribute("data-appid"),
            timestamp: $conf.getAttribute("data-timestamp"),
            nonceStr: $conf.getAttribute("data-noncestr"),
            signature: $conf.getAttribute("data-signature"),
            jsApiList: ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
        });
        var dataconf = {
            title: '<%=fxtitle %>', // 分享标题
            desc: '<%=fxcontent %>', // 分享描述
            link: 'https://wx.34537.com/xagent/dailituiguang1.aspx', // 分享链接
            imgUrl: 'http://wx.34537.com/Skin/Theme/images/agent/<%=fxicon %>' // 分享图标
        };
            wx.ready(function () {
                // 分享给朋友
                wx.onMenuShareAppMessage({
                    title: dataconf.title,
                    desc: dataconf.desc,
                    link: dataconf.link,
                    imgUrl: dataconf.imgUrl
                });
                // 分享到朋友圈
                wx.onMenuShareTimeline({
                    title: dataconf.title,
                    link: dataconf.link,
                    imgUrl: dataconf.imgUrl
                });
                // 分享到QQ
                wx.onMenuShareQQ({
                    title: dataconf.title,
                    desc: dataconf.desc,
                    link: dataconf.link,
                    imgUrl: dataconf.imgUrl
                });
                // 分享到腾讯微博
                wx.onMenuShareWeibo({
                    title: dataconf.title,
                    desc: dataconf.desc,
                    link: dataconf.link,
                    imgUrl: dataconf.imgUrl
                });
                // 分享到QQ空间
                wx.onMenuShareQZone({
                    title: dataconf.title,
                    desc: dataconf.desc,
                    link: dataconf.link,
                    imgUrl: dataconf.imgUrl
                });
            })
            console.log(location.href.split('#')[0]);
    </script>
</body>
</html>
